/**
 *
 */
package org.text2diagram.nlp.core;

/**
 *
 * @author alex
 *
 * @param <T>
 * @param <R>
 */
public interface NLPDetector<T,R> {

	/**
	 *
	 * @param data
	 * @return
	 * @throws NLPException - if a problem occurs during processing
	 */
	R detect(final T data) throws NLPException;

}
